package com.hp.service.impl;

import com.hp.entity.DrugType;
import com.hp.mapper.TypeMapper;
import com.hp.service.TypeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class TypeServiceImpl implements TypeService {
    @Resource
    TypeMapper typeMapper;

    /**
     * 添加
     */
    @Override
    public int add(DrugType drugType) {
        return typeMapper.add(drugType);
    }
}
